<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="作业.css" />
  </head>
  <body>
    <div class="slider-bar">
      <input
        type="range"
        id="slider"
        value="0"
        min="0"
        max="100"
        onmousemove="getSlider(this.value)"
      />
      分数： <span id="range">0</span>
    </div>
    <script>
      function getSlider(value) {
        document.getElementById('range').innerHTML = value
      }
    </script>
  </body>
</html>
